<ul id="user_infos">
    <li><?php echo $sf_user->getUsername() ?> </li>
    <li id="logout"> <?php echo link_to('Déconnexion', '@sf_guard_signout') ?> </li>
</ul>

<div id="sf_admin_menu">
    <?php
        $menu = new ioMenu();

        $menu->addChild('Contenu', "#", array('class' => 'menu_level_0'));
        $menu['Contenu']->addChild('Articles', "#");
        $menu['Contenu']['Articles']->addChild('Thèmes', url_for('theme/index'));
        $menu['Contenu']['Articles']->addChild('Annonces', url_for('announcement/index'));
        $menu['Contenu']['Articles']->addChild('Actualités', url_for('news/index'));
        $menu['Contenu']['Articles']->addChild('Evénements', url_for('event/index'));
        $menu['Contenu']['Articles']->addChild('Pages', url_for('page/index'));

        $menu['Contenu']->addChild('Commentaires', "#");
        $menu['Contenu']['Commentaires']->addChild('Liste des commentaires', url_for('commentAdmin/index'), array('class' => 'todo'));
        $menu['Contenu']['Commentaires']->addChild('Abus', url_for('commentReportAdmin/index'), array('class' => 'todo'));

        $menu['Contenu']->addChild('Galerie', "#");
        $menu['Contenu']['Galerie']->addChild('Albums photos', url_for('albumPhoto/index'));
        $menu['Contenu']['Galerie']->addChild('Albums vidéos', url_for('albumVideo/index'));
        $menu['Contenu']['Galerie']->addChild('Médias', url_for('sfAssetMedia/index'));

        $menu['Contenu']->addChild('Forum', "#");
        $menu['Contenu']['Forum']->addChild('Catégorie du forum', url_for('sfSimpleForumCategory/index'));
        $menu['Contenu']['Forum']->addChild('Forums', url_for('sfSimpleForumForum/index'));
        $menu['Contenu']['Forum']->addChild('Sujets', url_for('sfSimpleForumTopic/index'));
        $menu['Contenu']['Forum']->addChild('Messages', url_for('sfSimpleForumPost/index'));
        $menu['Contenu']['Forum']->addChild('Abus', url_for('sfSimpleForumAbuseLog/index'));

        $menu['Contenu']->addChild('Tennis de table', "#");
        $menu['Contenu']['Tennis de table']->addChild('Equipes', url_for('team/index'));
        $menu['Contenu']['Tennis de table']->addChild('Licenciés', url_for('licensee/index'));
        $menu['Contenu']['Tennis de table']->addChild('Points des Licenciés', url_for('licenseePoint/index'));
        $menu['Contenu']['Tennis de table']->addChild('Matchs des licenciés', url_for('licenseeMatch/index'), array('class' => 'todo'));
        $menu['Contenu']['Tennis de table']->addChild('Types de matchs', url_for('matchType/index'));
        $menu['Contenu']['Tennis de table']->addChild('Dérives', url_for('drift/index'));
        $menu['Contenu']['Tennis de table']->addChild('Clubs', url_for('club/index'));
        $menu['Contenu']['Tennis de table']->addChild('Partenaires', url_for('partner/index'));

        $menu['Contenu']->addChild('Divers', "#");
        $menu['Contenu']['Divers']->addChild('Menu', url_for('menu/index'));
        $menu['Contenu']['Divers']->addChild('Pied de page', url_for('footer/index'));

        $menu->addChild('Outils', "#", array('class' => 'menu_level_0'));
        $menu['Outils']->addChild('Fichiers', "#");
        $menu['Outils']['Fichiers']->addChild('Gestion des fichiers', url_for('sfAsset/index'));
        $menu['Outils']->addChild('Géolocalisation', "#");
        $menu['Outils']['Géolocalisation']->addChild('Pays', url_for('country/index'));
        $menu['Outils']['Géolocalisation']->addChild('Régions', url_for('region/index'));
        $menu['Outils']['Géolocalisation']->addChild('Départements', url_for('department/index'));
        $menu['Outils']['Géolocalisation']->addChild('Villes', url_for('city/index'));
        $menu['Outils']->addChild('Configuration', "#");
        $menu['Outils']['Configuration']->addChild('Email templates', "#", array('class' => 'todo'));
        $menu['Outils']->addChild('Supervision', "#");
        $menu['Outils']['Supervision']->addChild('Graphes', "#", array('class' => 'todo'));
        $menu['Outils']['Supervision']->addChild('Logs', "#", array('class' => 'todo'));

        $menu->addChild('SEO', "#", array('class' => 'menu_level_0'));
        $menu['SEO']->addChild('Services', "#");
        $menu['SEO']['Services']->addChild('Google Analytics', "#", array('class' => 'todo'));
        $menu['SEO']['Services']->addChild('Outils pour les webmasters', "#", array('class' => 'todo'));
        $menu['SEO']->addChild('Sitemap', "#");
        $menu['SEO']['Sitemap']->addChild('Gestion du XML sitemap', "#", array('class' => 'todo'));
        $menu['SEO']->addChild('Redirections', "#", array('class' => 'todo'));
        $menu['SEO']['Redirections']->addChild('URL redirections', "#", array('class' => 'todo'));


        $menu->addChild('Système', "#", array('class' => 'menu_level_0'));
        $menu['Système']->addChild('Sécurité', "#");
        $menu['Système']['Sécurité']->addChild('Utilisateurs', url_for('sfGuardUser/index'));
        $menu['Système']['Sécurité']->addChild('Groupes', url_for('sfGuardGroup/index'));
        $menu['Système']['Sécurité']->addChild('Permissions', url_for('sfGuardPermission/index'));

        $menu['Système']->addChild('log', "#");
        $menu['Système']['log']->addChild('Erreurs', "#", array('class' => 'todo'));
        $menu['Système']['log']->addChild('Emails [Contact]', url_for('contact/index'));

        $menu['Système']->addChild('dev', "#");
        $menu['Système']['dev']->addChild('Diagrammes', "#", array('class' => 'todo'));
        $menu['Système']['dev']->addChild('Serveur', "#", array('class' => 'todo'));

        $menu->addChild('Aller au site', "/index.php", array('class' => 'menu_level_0'));

        echo $menu->render();
    ?>
</div>